package com.lmx.project.mapper;

import com.lmx.project.common.PageRequest;
import com.lmx.project.model.dto.studyrecords.StudyrecordsQueryRequest;
import com.lmx.project.model.entity.Studyrecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lmx.project.model.vo.studyRecord.StudyrecordsShareVO;
import com.lmx.project.model.vo.studyRecord.StudyrecordsVo;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【studyRecords(学习记录表)】的数据库操作Mapper
* @createDate 2023-04-07 22:36:34
* @Entity com.lmx.project.model.entity.Studyrecords
*/
public interface StudyrecordsMapper extends BaseMapper<Studyrecords> {


    /**
     * 根据多条件查询
     * */
    List<StudyrecordsVo> selectstudurecords(StudyrecordsQueryRequest studyrecordsQueryRequest);


    /**
     * 计算总数
     * */
    Long countStudyrecord(StudyrecordsQueryRequest studyrecordsQueryRequest);

    /**
     * 获取分享的记录
     * @return
     */
    Long countSharerecord();

    List<StudyrecordsShareVO> selectShareRecords(PageRequest pageRequest);
}




